/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.entity.dspace;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author z.ciok@poltman.com
 * @version $Revision: 1637 $
 */
@Entity
@Table(name="eperson")
public class EPersonEntity  implements Serializable {
	
	private static final long serialVersionUID = 5642680597500520714L;
	
	public EPersonEntity() { }
	
    @Id
    @SequenceGenerator(name="eperson_seq", sequenceName="eperson_seq")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="eperson_seq") 
    @Column(name="eperson_id")
    private Integer epersonId;
    
    @Basic
    private String email;
    
    @Basic
    private String password;
    
    @Basic
    private String firstname;
    
    @Basic
    private String lastname;
    
    @Column(name="can_log_in")
    private Boolean canLogIn;
    
    @Column(name="require_certificate")
    private Boolean requireCertificate;
    
    @Column(name="self_registered")
    private Boolean selfRegistered;
    
    @Column(name="last_active")
    private Timestamp lastActive;
    
    @Column(name="sub_frequency")
    private Integer subFrequency;
    
    @Basic
    private String phone;
    
    @Basic
    private String netid;
    
    @Basic
    private String language;

//------    

	public Integer getEpersonId() {
		return epersonId;
	}
	public void setEpersonId(Integer epersonId) {
		this.epersonId = epersonId;
	}


	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}


	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}


	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}


	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}


	public Boolean isCanLogIn() {
		return canLogIn;
	}
	public void setCanLogIn(Boolean canLogIn) {
		this.canLogIn = canLogIn;
	}


	public Boolean isRequireCertificate() {
		return requireCertificate;
	}
	public void setRequireCertificate(Boolean requireCertificate) {
		this.requireCertificate = requireCertificate;
	}


	public Boolean isSelfRegistered() {
		return selfRegistered;
	}
	public void setSelfRegistered(Boolean selfRegistered) {
		this.selfRegistered = selfRegistered;
	}


	public Timestamp getLastActive() {
		return lastActive;
	}
	public void setLastActive(Timestamp lastActive) {
		this.lastActive = lastActive;
	}


	public Integer getSubFrequency() {
		return subFrequency;
	}
	public void setSubFrequency(Integer subFrequency) {
		this.subFrequency = subFrequency;
	}


	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getNetid() {
		return netid;
	}
	public void setNetid(String netid) {
		this.netid = netid;
	}


	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
}
